5.9. Modify the trapezoidal rule program that uses a parallel for directive (omp trap 3.
c) so that the parallel for is modified by a schedule(runtim
e) clause. Run the program with various assignments to the environment variable OMP SCHEDULE and determine which iterations are assigned to which thread.
This can be done by allocating an array iterations of n ints and in the Trap function assigning omp get thread num() to iterations[i] in the ithiteration of the for loop. What is the default assignment of iterations on your system? How are guided schedules determined?
 
 
View Solution
 
 
 
<< Back Next >>